package com.wj.gulimall.product.dao;

import com.wj.gulimall.product.entity.CategoryBrandRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 品牌分类关联
 *
 * @author wenjie
 * @email wenjie@gmail.com
 * @date 2020-10-11 11:58:03
 */
@Mapper
public interface CategoryBrandRelationDao extends BaseMapper<CategoryBrandRelationEntity> {

    void updateDetail(@Param("brandId") Long brandId, @Param("brandName") String name);

    @Update("update pms_category_brand_relation set catelog_Name = #{catelogName} where catelog_id = #{catId}")
    void updateCategory(@Param("catId") Long catId, @Param("catelogName") String name);
}
